import request from '/@/utils/request';

/**
 * 
 * @param params 获取参数列表
 * @returns 
 */
export const getList = (params: any) => {
    return request({ url: '/api/workflow/flowExpression/read/page', params })
}

/**
 * 
 * @param params 获取表达式数据字典
 * @returns 
 */
export const getExpressionDict = (params: any) => {
    return request({ url: '/api/workflow/flowExpression/read/dict', params })
}

/**
 * 
 * @param params 获取参数列表
 * @returns 
 */
export const getAllList = (params: any) => {
    return request({ url: '/api/workflow/flowExpression/read/list', params })
}


/**
 * 添加
 * @param params 
 * @returns 
 */
export const add = (params: any) => {
    return request({ url: '/api/workflow/flowExpression', method: 'post', data: params })
}

/**
 * 修改
 * @param params 
 * @returns 
 */
export const edit = (params: any) => {
    return request({ url: '/api/workflow/flowExpression', method: 'put', data: params })
}

/**
 * 删除
 * @param params 
 * @returns 
 */
export const remove = (params: any) => {
    return request({ url: '/api/workflow/flowExpression', method: 'delete', data: params })
}
